import Vue from 'vue'
import VueRouter from 'vue-router'
import AboutMe from '@/pages/AboutMe'
import Login from '@/pages/Login'
// import List from '@/pages/UIList'
import Tabbar from '@/pages/Tabbar'
import LoginCell from '@/pages/LoginCell'
import CellList from '@/pages/CellList'
import CheckboxList from '@/pages/CheckboxList'
import CellBtn from '@/pages/CellBtn'
import FormDetail from '@/pages/FormDetail'
import FormDetailCell from '@/pages/FormDetailCell'
import FormGroup from '@/pages/FormGroup'
import FormSingle from '@/pages/FormSingle'
import Search from '@/pages/Search'
import XhLogin from '@/pages/XhLogin'
import PublicMsgProj from '@/pages/PublicMsg/PublicMsgProj'
import PublicMsgProjDetail from '@/pages/PublicMsg/PublicMsgProjDetail'
import PublicMsgZM from '@/pages/PublicMsg/PublicMsgZM'
import PublicMsgZMDetail from '@/pages/PublicMsg/PublicMsgZMDetail'
import ZBPublish from '@/pages/PublicMsg/ZBPublish'
import ZBPublishDetail from '@/pages/PublicMsg/ZBPublishDetail'
import Index from '@/pages/PublicMsg/Index'

import MessageReceive from '@/pages/BldCenter/MessageReceive'
import BidForenoticeInvited from '@/pages/BldCenter/BidForenoticeInvited'
import BidForenoticeInvitedDetail from '@/pages/BldCenter/BidForenoticeInvitedDetail'
import MyInviteBid from '@/pages/BldCenter/MyInviteBid'
import MyInviteBidDetail from '@/pages/BldCenter/MyInviteBidDetail'
import InviteSuccess from '@/pages/BldCenter/InviteSuccess'
import InviteBidQuestion from '@/pages/BldCenter/InviteBidQuestion'
import InviteBidQuestionFrom from '@/pages/BldCenter/InviteBidQuestionFrom'
import MySuggest from '@/pages/BldCenter/MySuggest'
import MySuggestDetail from '@/pages/BldCenter/MySuggestDetail'
import MySuggestForm from '@/pages/BldCenter/MySuggestForm'
import InviteBidAsk from '@/pages/BldCenter/InviteBidAsk'
import InviteBidAskDetail from '@/pages/BldCenter/InviteBidAskDetail'
import InviteBidAskForm from '@/pages/BldCenter/InviteBidAskForm'
import FileUpload from '@/pages/FileUpload'
import DisplayFile from '@/pages/DisplayFile'
import MyContract from '@/pages/BldCenter/MyContract'
import MyContractDetail from '@/pages/BldCenter/MyContractDetail'
import MessageCenter from '@/pages/BldCenter/MessageCenter'
import InviteBidAskList from '@/pages/BldCenter/InviteBidAskList'
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        title: '星河微信采购平台'
      }
    },
    {
      path: '/demos/xh-login',
      name: 'xh-login',
      component: XhLogin,
      meta: {
        title: '星河微信采购平台'
      }
    },
    {
      path: '/demos/index',
      name: 'index',
      component: Index,
      meta: {
        title: '星河微信采购平台'
      }
    },
    {
      path: '/demos/public-msg-proj',
      name: 'public-msg-proj',
      component: PublicMsgProj,
      meta: {
        title: '项目动态',
        isKeepAlive: true
      }
    },
    {
      path: '/demos/public-msg-proj-detail',
      name: 'public-msg-proj-detail',
      component: PublicMsgProjDetail,
      meta: {
        title: '项目动态详情'
      }
    },
    {
      path: '/demos/public-msg-z-m',
      name: 'public-msg-z-m',
      component: PublicMsgZM,
      meta: {
        title: '供方招募',
        isKeepAlive: true
      }
    },
    {
      path: '/demos/public-msg-z-m-detail',
      name: 'public-msg-z-m-detail',
      component: PublicMsgZMDetail,
      meta: {
        title: '供方招募详情'
      }
    },
    {
      path: '/demos/z-b-publish',
      name: 'z-b-publish',
      component: ZBPublish,
      meta: {
        title: '中标公示',
        isKeepAlive: true
      }
    },
    {
      path: '/demos/z-b-publish-detail',
      name: 'z-b-publish-detail',
      component: ZBPublishDetail,
      meta: {
        title: '中标公示详情'
      }
    },
    {
      path: '/demos/message-receive',
      name: 'message-receive',
      component: MessageReceive,
      meta: {
        title: '我的通知',
        isLogin: true
      }
    },
    {
      path: '/demos/bid-forenotice-invited',
      name: 'bid-forenotice-invited',
      component: BidForenoticeInvited,
      meta: {
        title: '报名邀请',
        isLogin: true
      }
    },
    {
      path: '/demos/bid-forenotice-invited-detail',
      name: 'bid-forenotice-invited-detail',
      component: BidForenoticeInvitedDetail,
      meta: {
        title: '报名邀请详细',
        isLogin: true
      }
    },
    {
      path: '/demos/my-invite-bid',
      name: 'my-invite-bid',
      component: MyInviteBid,
      meta: {
        title: '我的投标',
        isLogin: true
      }
    },
    {
      path: '/demos/my-invite-bid-detail',
      name: 'my-invite-bid-detail',
      component: MyInviteBidDetail,
      meta: {
        title: '招标流程',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-success',
      name: 'invite-success',
      component: InviteSuccess,
      meta: {
        title: '报名成功',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-question',
      name: 'invite-bid-question',
      component: InviteBidQuestion,
      meta: {
        title: '在线答疑',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-question-form',
      name: 'invite-bid-question-form',
      component: InviteBidQuestionFrom,
      meta: {
        title: '我要提问',
        isLogin: true
      }
    },
    {
      path: '/demos/my-suggest',
      name: 'my-suggest',
      component: MySuggest,
      meta: {
        title: '投诉反馈'
      }
    },
    {
      path: '/demos/my-suggest-detail',
      name: 'my-suggest-detail',
      component: MySuggestDetail,
      meta: {
        title: '我的投诉'
      }
    },
    {
      path: '/demos/my-suggest-form',
      name: 'my-suggest-form',
      component: MySuggestForm,
      meta: {
        title: '我要投诉'
      }
    },
    {
      path: '/demos/invite-bid-ask',
      name: 'invite-bid-ask',
      component: InviteBidAsk,
      meta: {
        title: '在线澄清',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-ask-list',
      name: 'invite-bid-ask-list',
      component: InviteBidAskList,
      meta: {
        title: '在线澄清',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-ask-detail',
      name: 'invite-bid-ask-detail',
      component: InviteBidAskDetail,
      meta: {
        title: '我的澄清',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-ask-detail',
      name: 'invite-bid-ask-detail',
      component: InviteBidAskDetail,
      meta: {
        title: '我的澄清',
        isLogin: true
      }
    },
    {
      path: '/demos/invite-bid-ask-form',
      name: 'invite-bid-ask-form',
      component: InviteBidAskForm,
      meta: {
        title: '我要澄清',
        isLogin: true
      }
    },
    {
      path: '/demos/my-contract',
      name: 'my-contract',
      component: MyContract,
      meta: {
        title: '我的合同',
        isLogin: true,
        isKeepAlive: true
      }
    },
    {
      path: '/demos/my-contract-detail',
      name: 'my-contract-detail',
      component: MyContractDetail,
      meta: {
        title: '我的合同',
        isLogin: true
      }
    },
    {
      path: '/demos/message-center',
      name: 'message-center',
      component: MessageCenter,
      meta: {
        title: '消息跳转',
        isLogin: true
      }
    },
    {
      path: '/demos/login-cell',
      name: 'login-cell',
      component: LoginCell,
      meta: {
        title: '微信登录组件'
      }
    },
    {
      path: '/demos/login-app',
      name: 'login-app',
      component: Login,
      meta: {
        title: '微信登录'
      }
    },
    {
      path: '/demos/cell-list',
      name: 'cell-list',
      component: CellList,
      meta: {
        title: '图文列表'
      }
    },
    {
      path: '/demos/checkbox-list',
      name: 'checkbox-list',
      component: CheckboxList,
      meta: {
        title: '图文列表带复选'
      }
    },
    {
      path: '/demos/cell-btn',
      name: 'cell-btn',
      component: CellBtn,
      meta: {
        title: '纯文字带按钮列表'
      }
    },
    {
      path: '/demos/form-detail',
      name: 'form-detail',
      component: FormDetail,
      meta: {
        title: '表单详情-带选项卡'
      }
    },
    {
      path: '/demos/form-detail-cell',
      name: 'form-detail-cell',
      component: FormDetailCell,
      meta: {
        title: '表单详情-不带选项卡'
      }
    },
    {
      path: '/demos/form-group',
      name: 'form-group',
      component: FormGroup,
      meta: {
        title: '分组表单输入'
      }
    },
    {
      path: '/demos/form-single',
      name: 'form-single',
      component: FormSingle,
      meta: {
        title: '未分组表单输入'
      }
    },
    {
      path: '/demos/about-me',
      name: 'about-me',
      component: AboutMe,
      meta: {
        title: '个人中心'
      }
    },
    {
      path: '/demos/tabbar',
      name: 'tabbar',
      component: Tabbar,
      meta: {
        title: '菜单导航'
      }
    },
    {
      path: '/demos/search',
      name: 'search',
      component: Search,
      meta: {
        title: '搜索栏'
      }
    },
    {
      path: '/demos/file-upload',
      name: 'file-upload',
      component: FileUpload,
      meta: {
        title: '搜索栏'
      }
    },
    {
      path: '/demos/display-file',
      name: 'display-file',
      component: DisplayFile,
      meta: {
        title: '查看文件'
      }
    }
  ]
})
